// 德州=>俱乐部管理
import request from '@/utils/request'

export default {
	// 俱乐部列表
	clubManagerList: (data) => request({
		url: 'club/list',
		method: 'post',
		data
	}),

	// 俱乐部申请列表
	clubManageClubAuditList: (data) => request({
		url: 'clubAudit/clubAuditList',
		method: 'post',
		data
	}),

	// 更改俱乐部审批状态
	clubManageAudit: (data) => request({
		url: 'clubAudit/audit',
		method: 'post',
		data
	}),

	// 锁单、解锁
	clubManageClubAuditLock: (data) => request({
		url: 'clubAudit/clubAuditLock',
		method: 'post',
		data
	}),

	// 俱乐部锁单加审核
	clubManageLockAndAudit: (data) => request({
		url: 'clubAudit/clubAuditLockAndAudit',
		method: 'post',
		data
	}),

	// 俱乐部列表导出
	clubManageExport: (data) => request({
		url: 'club/clubLsExport',
		method: 'post',
		data,
		responseType: 'blob'
	}),

	// 更新通用设置
	clubManageAddUpdateClubParam: (data) => request({
		url: 'club/addOrUpdateClubParam',
		method: 'post',
		data
	}),

	// 更新通用设置
	clubManageUpdateClubParam: (data) => request({
		url: 'club/updateClubParam',
		method: 'post',
		data
	}),

	// 获取通用设置
	clubManageQueryClubParam: () => request({
		url: 'club/queryClubParam',
		method: 'post',
		data: {}
	}),

	// 俱乐部管理-俱乐部会员列表
	getClubMemberList: (data) => {
		return request({
			url: 'club/memberList',
			method: 'post',
			data
		})
	},
	// 俱乐部管理-俱乐部会员列表-导出
	exportClubMemberList: (data) => {
		return request({
			url: 'club/memberLsExport',
			method: 'post',
			responseType: 'blob',
			data
		})
	},
	// 俱乐部管理-俱乐部会员列表-启用/禁用
	setClubMemberStartOrStop: (data) => {
		return request({
			url: 'club/incomingSwitch',
			method: 'post',
			data
		})
	},
	// 俱乐部管理-俱乐部会员列表-获取操作记录
	getClubMemberOperationRecords: (data) => {
		return request({
			url: 'club/clubMemberOperatelist',
			method: 'post',
			data
		})
	},
	// 俱乐部管理-俱乐部联盟-列表-查询
	getClubLeaguesList: (data) => {
		return request({
			url: 'clubLeagues/List',
			method: 'post',
			data
		})
	},
	exportClubLeaguesList: (data) => {
		return request({
			url: 'clubLeagues/export',
			method: 'post',
			responseType: 'blob',
			data
		})
	},
	// 俱乐部管理-俱乐部联盟-新增-编辑
	addOrEditClubLeagues: (data) => {
		return request({
			url: 'clubLeagues/addOrEdit',
			method: 'post',
			data
		})
	},
	// 俱乐部管理-俱乐部联盟-查询所有俱乐部
	getClubLeaguesQueryAllClub: (data) => {
		return request({
			url: 'clubLeagues/queryAllClub',
			method: 'post',
			data
		})
	},
	// 俱乐部管理-俱乐部联盟-校验俱乐部信息
	checkClubLeaguesClubIsReapet: (data) => {
		return request({
			url: 'clubLeagues/checkClub',
			method: 'post',
			data
		})
	}

}
